﻿<Window x:Class="TVManager.ChooseImageWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Choose Image Window" Height="600" Width="400">
    <Grid Margin="10">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <TextBlock Text="Please choose an image." Margin="3" />
        <ListBox x:Name="imagesListBox" Margin="3" Grid.Row="1" >
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <Grid>
                        <TextBlock Margin="10" Text="Loading..." />
                        <Image Source="{Binding ImageUrl}" Margin="3" Width="320" />
                    </Grid>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        <Button x:Name="selectButton" Content="Select" Grid.Row="2" Margin="3" HorizontalAlignment="Left" Width="75"  />
        <Button x:Name="cancelButton" Content="Cancel" Grid.Row="2" Margin="3" HorizontalAlignment="Right" Width="75"  />
    </Grid>
</Window>
